var n = getApp();

Page({
    data: {},
    onLoad: function(n) {
        n.id && this.setData({
            id: n.id
        });
        var t = decodeURIComponent(n.scene);
        if (t) {
            var e = t.split("=");
            "id" == e[0] && this.setData({
                id: e[1]
            });
        }
        wx.setNavigationBarTitle({
            title: "活动签到"
        }), this.getData();
    },
    getData: function() {
        var t = n.getNetAddresss("plugin.conference.api.conference-activity.save-sign");
        n._getNetWork({
            url: t,
            data: {
                conference_id: this.data.id
            },
            success: function(n) {
                var t = n.data;
                wx.showToast({
                    title: t.msg,
                    duration: 1500,
                    icon: "none",
                    complete: function() {
                        setTimeout(function() {
                            wx.reLaunch({
                                url: "/packageG/index/index"
                            });
                        }, 1500);
                    }
                });
            },
            fail: function(n) {
                console.log(n);
            }
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});